package view;

import controller.SessionController;
import java.security.Principal;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author ZimmE
 */
@Named
@RequestScoped
public class HomeView {

    @EJB
    private SessionController sessionController;

    /**
     * Delegate method for getPrincipal
     *
     * @return Principal
     */
    public Principal getPrincipal() {
        return sessionController.getPrincipal();
    }
}
